package com.darly.rnmodule.ui;

import android.content.Intent;
import android.os.Bundle;

import androidx.annotation.Nullable;

import com.darly.rnmodule.ModuleEnum;

/**
 * author:zhangyuhui
 * date:2020-01-1409:17
 * description: 非标签列表
 */
public class ObjectListActivity extends BaseReactNativeActivity {

    @Nullable
    @Override
    protected String getMainComponentName() {
        return ModuleEnum.OBJECT_LIST_ACTIVITY;
    }

    @Override
    public Bundle getOwnLaunchOptions() {
        Intent intent = getIntent();
        Bundle bundle = new Bundle();
        if (intent.hasExtra(ModuleEnum.TITLE)){
            bundle.putString(ModuleEnum.TITLE,intent.getStringExtra(ModuleEnum.TITLE));
        }
        return bundle;
    }
}
